testscale: change example to use upwards labels
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 4 Mar 2016 05:12:21 +0000 (21:12 -0800)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 4 Mar 2016 06:06:16 +0000 (22:06 -0800)
There's no example of that in testscale.

tests/testscale.c

index 14017316756134f5c02134eb1fb8ef1a49467bd6..17c676feb0f27fea253b0d846b6d980d79df7214 100755 (executable)
@@ -177,9 +177,9 @@ int main (int argc, char *argv[])
   scale = gtk_scale_new_with_range (GTK_ORIENTATION_HORIZONTAL, 0, 100, 1);
   scales = g_slist_prepend (scales, scale);
   gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
-  gtk_scale_add_mark (GTK_SCALE (scale), marks[0], GTK_POS_BOTTOM, labels[0]);
-  gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_BOTTOM, NULL);
-  gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_BOTTOM, labels[2]);
+  gtk_scale_add_mark (GTK_SCALE (scale), marks[0], GTK_POS_TOP, labels[0]);
+  gtk_scale_add_mark (GTK_SCALE (scale), marks[1], GTK_POS_TOP, NULL);
+  gtk_scale_add_mark (GTK_SCALE (scale), marks[2], GTK_POS_TOP, labels[2]);
   gtk_container_add (GTK_CONTAINER (frame), scale);
   gtk_box_pack_start (GTK_BOX (box), frame, FALSE, FALSE, 0);